﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WinFormSample
{
    public partial class FilterPropertyDialog : Form
    {
        public FilterPropertyDialog(string name, object property)
        {
            InitializeComponent();
            this.Text = name;
            propertyGrid.SelectedObject = property;
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
